@charset "utf-8";

body{
    background: #f5f5f5;
    min-width: 300px;
}
.jd_topBar{
    position: static;
}

/*安全提示*/
.jd_safeTip{
    text-align: center;
    height: 34px;
    line-height: 34px;
    border-bottom: 1px solid #ccc;
    background: #fff;
    font-size: 12px;
    color: #666;
}
.jd_safeTip p{
    position: relative;
    display: inline-block;
    padding-left: 23px;
}
.jd_safeTip p::before{
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 18px;
    height: 18px;
    background: url("../images/safe_icon.png");
    background-size:18px 18px;
}


/*店铺*/
.jd_shop{
    background: #fff;
}
.jd_shop .jd_shop_tit{
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
    height: 34px;
    line-height: 34px;
    position: relative;
}
.jd_shop .jd_shop_con .product{
    border-bottom: 1px solid #ccc;
    height: 100px;
    position: relative;
}
.jd_shop .check_box{
    width: 40px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}
.jd_shop .shop_info{
    padding-left: 40px;
    height: 100%;
}
.jd_shop .shop_info .logo{
    width: 15px;
    height: 13px;
    display: inline-block;
}
/*.jd_shop .shop_info .name{*/
    /*color: #d8505c;*/
    /*font-size: 15px;*/
/*}*/
.jd_shop .shop_info .tip{
    font-size: 12px;
    color: #d8505c;
}
.jd_shop .shop_info .img_box{
    height: 100px;
    width: 90px;
    float: left;
    padding: 10px;
    padding-left: 0;
}
.jd_shop .shop_info .img_box img{
    width: 100%;
    height: 100%;
    display: block;
}
.jd_shop .shop_info .info_box{
    overflow: hidden;
    padding-top: 10px;
    padding-right: 10px;
}
.jd_shop .shop_info .info_box .p_name{
    display: block;
    overflow: hidden;
    height: 30px;
    line-height: 15px;
}
.jd_shop .shop_info .info_box .p_price{
    color: #d8505c;
    font-size: 12px;
    padding: 3px 0;
}
.jd_shop .shop_info .info_box .p_option{}


/*数量选择盒子*/
.change_num{
    float: left;
}
/*nth-of-type 是当前元素类型的第几个元素*/
.change_num span{
    border: 1px solid #ccc;
    width: 36px;
    height: 24px;
    float: left;
    text-align: center;
    line-height: 24px;
}
.change_num span:nth-of-type(1){

}
.change_num span:nth-of-type(2){
}
.change_num input{
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 24px;
    width: 36px;
    float: left;
    text-align: center;
}


/*删除盒子*/
.delete_box{
    float: right;
}
.delete_box .delete_up{
    width: 20px;
    height: 5px;
    display: block;
    background-image: url(../images/delete_up.png);
    background-size:20px 5px ;
    margin-left: -1px;
}
.delete_box .delete_down{
    width: 18px;
    height: 18px;
    display: block;
    background-image: url(../images/delete_down.png);
    background-size:18px 18px ;
    margin-top: -2px;
}



/*自定义复选框*/
.jd_check_box{
    width: 40px;
    height: 34px;
    padding: 7px 10px;
    display: block;
    background-image: url(../images/shop-icon.png);
    background-size:50px 100px ;
    background-position: 0 0;
    background-clip: content-box;
    background-origin:content-box;
}
.jd_check_box[checked]{
    background-position: -25px 0;
}



/*弹出框*/
.jd_win{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.6);
    display: none;
}
.jd_win .jd_win_box{
    width: 80%;
    background: #fff;
    border-radius: 4px;
    padding:0 10px;
    /*不知道盒子的高宽的情况下怎么让这个盒子上下左右居中*/
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50% ,-50%);
    transform: translate(-50% ,-50%);
}
.jd_win .jd_win_box .jd_win_tit{
    line-height: 75px;
    text-align: center;
    font-size: 18px;
    border-bottom: 1px solid #ccc;
}
.jd_win .jd_win_box .jd_btn{
    width: 100%;
    padding: 10px 10px;
}
.jd_win .jd_win_box .jd_btn a{
    width: 45%;
    font-size: 16px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    float: left;
}
.jd_win .jd_win_box .jd_btn .cancel{
    margin-right: 10%;
    border: 1px solid #ccc;
}
.jd_win .jd_win_box .jd_btn .submit{
    background: #d8505c;
    color: #fff;
}

/*动画*/
.myBounceInDown{
    -webkit-animation: myBounceInDown 1s;
    animation: myBounceInDown 1s;
}
@keyframes myBounceInDown {
    0%{
        opacity: 0;
        -webkit-transform: translate3d(-50%,-500%,0);
        transform: translate3d(-50%,-500%,0);
    }

    60%{
        opacity: 1;
        -webkit-transform: translate3d(-50%,-45%,0);
        transform: translate3d(-50%,-45%,0);
    }

    75%{
        -webkit-transform: translate3d(-50%,-53%,0);
        transform: translate3d(-50%,-53%,0);
    }

    90%{
        -webkit-transform: translate3d(-50%,-48%,0);
        transform: translate3d(-50%,-48%,0);
    }

    100%{
        -webkit-transform: translate3d(-50%,-50%,0);
        transform: translate3d(-50%,-50%,0);
    }
}
@-webkit-keyframes myBounceInDown {
    0%{
        opacity: 0;
        -webkit-transform: translate3d(-50%,-500%,0);
        transform: translate3d(-50%,-500%,0);
    }

    60%{
        opacity: 1;
        -webkit-transform: translate3d(-50%,-45%,0);
        transform: translate3d(-50%,-45%,0);
    }

    75%{
        -webkit-transform: translate3d(-50%,-53%,0);
        transform: translate3d(-50%,-53%,0);
    }

    90%{
        -webkit-transform: translate3d(-50%,-48%,0);
        transform: translate3d(-50%,-48%,0);
    }

    100%{
        -webkit-transform: translate3d(-50%,-50%,0);
        transform: translate3d(-50%,-50%,0);
    }
}